package com.jiao.testdemo.pattern.state;


/**
 * TODO(文件概要)
 *
 * <p> TODO(具体描述信息,可以不填)
 *
 * @author meetsocial
 * @version V1.0
 * @className: ConcreteStateB
 * @date 2024/11/15 11:16
 */
public class ConcreteStateB implements State {
    @Override
    public void handle(Context context) {
        System.out.println("Handling state B");
        context.setState(new ConcreteStateA());  // 切换到状态A
    }
}
